home *** CD-ROM | disk | FTP | other *** search
- Path: news.mountain.net!usenet
- From: matt.jenkins@westvirginia.com (Light Chaser)
- Newsgroups: comp.lang.c,alt.bbs.proboard
- Subject: Needed: Centering Procedure that ignores escape sequences
- Date: Tue, 13 Feb 1996 01:47:12 GMT
- Organization: TDB
- Message-ID: <4fog4q$24v@news.mountain.net>
- NNTP-Posting-Host: 198.77.18.114
- X-Newsreader: Forte Free Agent 1.0.82
-
- I spent a whole day trying to come up with a simple and small
- centering routine. I came up with one, but then ran into the problem
- that I have to ignore escape sequences. My BBS software, ProBoard,
- supports only certain functions (which are listed at the end of this
- message). I want something where I can do:
- center("\n\2This \3text \5contains \1escape \6sequences\t\n");
- the \x are the colors, then \t is wait for enter, and the \n is of
- course the return. Does anyone have anything I can go on? I have
- found many ways to do it, but they do not ignore the escape sequences.
- Any help would be appriciated. Thanks! Also, an E-Mail reponse would
- be better than a newsgroup response. My newserver loses most of my
- newsgroup messages :( Thanks again!
-
- Functions supported:
-
- fopen , freopen , fseek , ftell , fgets , fgetc , fflush
- fclose , fputs , getc , getchar , gets , fputc , putc ,
- putchar , puts , fread , fwrite , printf , fprintf ,
- vfprintf , vprintf , sprintf , vsprintf , setbuf ,
- setvbuf , remove , rename , rewind , clearerr , feof ,
- isalpha , iscntrl , isdigit , isgraph , islower ,
- isprint , ispunct , isspace , isupper , isxdigit ,
- toupper , tolower , int86x , intdos , intdosx ,
- dos_findfirst , dos_findnext , write , open , creat ,
- close , unlink , chsize , dup , dup2 , lseek , access ,
- filesize , filelength , isatty , atoi , atol , strtol ,
- rand , srand , calloc , free , malloc , realloc , putenv
- getenv , abs , labs , memcpy , memmove , strcpy ,
- strncpy ,
- strcat , strncat , memcmp , strcmp , strncmp , memchr ,
- strchr , strcspn , strpbrk , strrchr , strspn , strstr ,
- strtok , memset , strlen , memicmp , stpcpy , strcmpl ,
- strnicmp , strdup , strlwr , strupr , strnset , strrev ,
- strset , swab , strncmpl , strnicmp , clock , time ,
- mktime ,
- asctime , ctime , localtime , gmtime , strftime , sleep
- ,
- usleep , msleep , difftime, mkdir(), chdir(), rmdir()
-
- ---End---
-
- Matt
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- The Doorway BBS
- 1-304-782-4691
- Matt Jenkins
- Running ProBoard v2.12
- http://www.westvirginia.com/mjenkins
- matt.jenkins@westvirginia.com
-
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-